package cn.kow.kmall.core.response;

/**
 * @Author: lijun
 * @Description:
 * @Date: Created in 2019-05-20 16:52
 * @Modified By:
 */
public enum BaseResultEnum implements BaseResultInfo {

    DAO_UPDATE_NOT_FOUND(400,"数据更新失败"),
    DAO_UPDATE_FAIL(400,"数据更新失败"),
    DAO_NOT_FOUND(404,"数据不存在"),
    IMAGE_UPLOAD_ERROR(400,"图片上传失败"),
    PERMISSION_ERROR(400, "权限不足，拒绝访问"),
    ;

    private Integer code;

    private String message;

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    BaseResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
